PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-05-15 10:20:58.483323+00:00 (UTC)
In US/Central Time, this is 2024-05-15 05:20:58.483323-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/eb645a51cd45b8eaf1405ac5cb571b7e7242b766d8bf1c8350f36e474c2ede5b.png
We are just generating a random time serie here.
../../_images/cb5d0255224f59475459609daac709dda938a8656bb1f766d09f576ce155d725.png
../../_images/51caeac16c6be327e3b08b333ad214b7b4cc07508bb4bc0e8d92e4d3c3aa9789.png